package com.example.boot.order.model;

import java.util.Date;

import javax.validation.constraints.Min;


public class Order {
	private String id;

	private Date createDate;

	private Integer deleteStatus;
	@Min(value = 18, message = "未成年少女禁止入内")
	private Integer number;

	private String orderId;

	private String openId;

	private Double numberPrice;

	private Double odds;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id == null ? null : id.trim();
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getDeleteStatus() {
		return deleteStatus;
	}

	public void setDeleteStatus(Integer deleteStatus) {
		this.deleteStatus = deleteStatus;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId == null ? null : orderId.trim();
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId == null ? null : openId.trim();
	}

	public Double getNumberPrice() {
		return numberPrice;
	}

	public void setNumberPrice(Double numberPrice) {
		this.numberPrice = numberPrice;
	}

	public Double getOdds() {
		return odds;
	}

	public void setOdds(Double odds) {
		this.odds = odds;
	}

	@Override
	public String toString() {
		return "Order [id=" + id + ", createDate=" + createDate + ", deleteStatus=" + deleteStatus + ", number="
				+ number + ", orderId=" + orderId + ", openId=" + openId + ", numberPrice=" + numberPrice + ", odds="
				+ odds + ", getId()=" + getId() + ", getCreateDate()=" + getCreateDate() + ", getDeleteStatus()="
				+ getDeleteStatus() + ", getNumber()=" + getNumber() + ", getOrderId()=" + getOrderId()
				+ ", getOpenId()=" + getOpenId() + ", getNumberPrice()=" + getNumberPrice() + ", getOdds()=" + getOdds()
				+ ", getClass()=" + getClass() + ", hashCode()=" + hashCode() + ", toString()=" + super.toString()
				+ "]";
	}

}